package com.ly.hotel.spainterface.pp.utils;

import com.google.gson.Gson;

/**
 * Created by mo on 2018/4/20.
 */

public class GsonUtils {
    public static <T> T parseSimpleJson(String jsonString,Class<T> clazz){
        try{
            Gson gson = new Gson();
            T result = gson.fromJson(jsonString,clazz);
            return result;
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
